<?php
/**
 * Default layout per Infocube
 */
defined('_JEXEC') or die('Restricted access');
?>
				
				<?php
				// Se non sono nel forum
				if($option != "com_agora") {
				
					// Terzo livello mostro back 
					if(count($itemMenu -> tree) >= 3) {
						
						// Catturo link per menu padre
						$idParent = $itemMenu -> tree[count($itemMenu -> tree) - 2];
						$parentMenu = $mainframe -> getMenu() -> getItem($idParent);
						?>
						
						<div class="separatore"></div>
						<a class="back" href="<?php echo JRoute::_($parentMenu -> link . "&amp;Itemid=" . $idParent) ?>">back</a>
					
					<?php 
					// Terzo livello logico (category -> article)
					} else {
						
						$curr_request = JRequest::getVar('REQUEST_URI', '', 'server');
						$curr_request = substr($curr_request, 1);
						if($curr_request != $itemMenu -> link . "&Itemid=" . $itemMenu -> id && $itemMenu -> id != '72') {
						?>
							<div class="separatore"></div>
							<div class="top">
								<a class="arrow_top" href="<?php echo $itemMenu -> link . "&amp;Itemid=" . $itemMenu -> id ?>">top</a>
							</div>
						<?php	
						}
					}
				}
				?>
		